package com.mjf.cjt.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * desc 存货
 * </p>
 *
 * @author chenshoumeng
 * @date 2025/5/18 03:21
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class InventoryVO {

    private Integer totalcount;
    private Integer totalpage;
    private Integer currentpage;
    private List<InventoryInfo> data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class InventoryInfo {

        private Long id; //
        private String code; // 存货编码
        private String name; // 存货名称
        private String baseunitcode; // 单位编码
        private String baseunitname; // 单位
        private String specification; // 规格型号
        private InventoryClassVO InventoryClass; // 存货分类

    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class InventoryClassVO {
        private String Code;
        private String Name;
    }
}
